package com.jsgt.greekfire.common.http

import com.jsgt.greekfire.bean.ActivationBean
import com.jsgt.greekfire.bean.WalletInfoBean
import com.jsgt.greekfire.bean.YTWallet
import okhttp3.RequestBody
import retrofit2.http.*

/**
 * author fhx
 * create time 2020/4/24 20:32
 **/
interface WalletService {

    /**
     * 创建名称
     */
    @POST("api/gfcuserwallet/walletNameOnly")
    suspend fun CreateName(@Body params: RequestBody):Data

    /**
     * 创建钱包
     */
    @POST("api/gfcuserwallet/save")
    suspend fun createWallet(@Body params: RequestBody): ResponseData<YTWallet>

    /**
     * 导入钱包
     */

    @POST("api/gfcuserwallet/importWallet")
    suspend fun importWallet(@Body params: RequestBody): ResponseData<YTWallet>


    /**
     * 获取钱包信息
     */
    @GET("api/gfcuserwallet/info")
    suspend fun getWalletInfo(): ResponseData<WalletInfoBean>

    /**
     * 验证钱包密码
     */
    @POST("api/gfcuserwallet/verifySecurityPassword")
    suspend fun checkSecurityPassword(@Body params: RequestBody): ResponseData<Any>

    /**
     * 绑定激活 - 弃用
     */
    @POST("api/gfcuserwallet/active")
    suspend fun Bindingactivation(@Body params: RequestBody): ResponseData<Any>

    /**
     * 激活列表
     */
    @POST("api/gfctransferactivation/list")
    suspend fun activationList(): ResponseData<List<ActivationBean>>

    /**
     * 转账激活其他账户
     */
    @POST("api/gfctransferactivation/transfer")
    suspend fun activationTransfer(@Body params: RequestBody): ResponseData<Any>

    /**
     * 激活
     */
    @POST("api/gfctransferactivation/activation")
    suspend fun activation(@Body params: RequestBody): ResponseData<Any>
}